package io.ouka.pub.judge;


import io.ouka.pub.exception.BaseException;
import io.ouka.pub.exception.ServerException;
import io.ouka.pub.exceptionenum.IResponseEnum;

/**
 * @author ouka
 * @ClassName ServerExceptionAssert
 * @Package com.sinosig.pub.judge
 * @Description: TODO
 * @date 2020/5/28 17:19
 */
public interface ServerExceptionAssert extends Assert, IResponseEnum {
    @Override
    default BaseException newException(Object... args){
        return new ServerException(this,args,this.getMsg());
    }

    @Override
    default BaseException newException(Throwable t, Object... args){
        return new ServerException(this,args,this.getMsg(),t);
    }
}
